package com.shh.shbqbackendservicemaster.esdao;

import com.shh.shbqbackendservicemaster.model.dto.post.QuestionEsDTO;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * 题目 ES 操作
 *<QuestionEsDTO, Long>  前面要操作的类型  后面是索引id的类型
 */
public interface QuestionEsDao extends ElasticsearchRepository<QuestionEsDTO, Long> {

    List<QuestionEsDTO> findByUserId(Long userId);
}